{{#extends @html/widgets/widget.html}}
{{:widget_div_name}}main{{/:widget_div_name}}

{{:widget_body}}
{{@:content}}
{{/:widget_body}}

{{:widget_title}}
{{?widget.title}}{{widget.title}}{{?:}}Тема дня{{/?}}
{{/:widget_title}}

{{:content widget.item_not_set}}
	<div class="content"><p>Не выбрана запись.</p></div>
{{/:content}}

{{:content}}
	<h3 class="ptitle-"><a href="{{/}}{{community.url}}/{{widget.content.post.oid}}">{{widget.header}}</a></h3>
	<div class="content body-">
			<p>{{widget.body | safe}}</p>
	</div>

	{{?widget.content.post.commentscount}}
		<a href="{{/}}{{community.url}}/{{widget.content.post.oid}}?showcomments#comments" class=" comments-">{{!plural widget.content.post.commentscount "комментари" "й" "я" "ев" sep=" "}}</a>
	{{?:}}
		<span class=" comments-">Комментариев пока нет</span>
	{{/?}}
	<div class="author-">
		{{?widget.content.platonicaid_author}}
		<img src="{{widget.content.platonicaid_author.avatar_url}}" alt="" class="avatar-" />
		<div class="name-"><a href="{{widget.content.platonicaid_author.url}}" class="name-">{{widget.content.platonicaid_author.name}}</a></div>
		{{?:}}
		<img src="{{?!widget.content.poster.avatar}}{{images}}avatar-22x22.png{{?:}}{{/}}{{widget.content.poster.avatar | link_to 'imagestorage' 'sm2'}}{{/?}}" alt="" class="avatar-" />
		<div class="name-"><a href="{{/}}{{community.url}}/members/{{widget.content.poster.oid}}" class="name-">{{widget.content.poster.name}}</a></div>
		{{/?}}
		<div class="datetime-">{{widget.content.post.ctime|date '%d.%m.%y в %H:%i'}}</div>
	</div>
{{/:content}}
